import {
  toast,
  model
} from './utils/extendAPI'
import {
  promisifyAll
} from 'miniprogram-api-promise'
const wxp = wx.p = {}
promisifyAll(wx, wxp)
// import instanceRequest from "./utils/request"

import instance from "./utils/http"
App({
  // 全局共享的数据,
  // 点击收收获地址时,需要点击收获地址赋值给address
  globalData:{
    address:{}
  },
  onLaunch: function () {},
  async onShow(options) {
    // const res = await model()
    // console.log(res);get
    // toast({})
    // const r = await instanceRequest.get('/index/findBanner')
    var res = await instance.get('/index/findBanner')
  },
  onHide: function () {
  },
  onError: function (msg) {
  }
})